﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    /// <summary>
    /// 工作计划
    /// </summary>
    public class Yqd_JobPlan
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int PlanID { get; set; }

        [DisplayName("任务编号")]
        public long TaskID { get; set; }

        [DisplayName("事项编号（钉办督导编号、协同管理编号")]
        public int ItemID { get; set; }

        [DisplayName("事项类型（钉办督到、协同管理）")]
        public 事项类型 ItemType { get; set; }

        [DisplayName("交办编号")]
        public int AssignID { get; set; }

        [DisplayName("工作方案编号")]
        public int SchemeID { get; set; }

        [DisplayName("工作计划")]
        [StringLength(500)]
        public string Measure { get; set; }

        [DisplayName("完成时限")]
        public DateTime CompleteTime { get; set; }

        [DisplayName("工作计划状态")]
        public 工作计划状态 PlanStatus { get; set; }

        [DisplayName("时间节点")]
        public string TimeLine { get; set; }

        [DisplayName("协办单位")]
        public string CooperativeUnit { get; set; }

        [DisplayName("是否内部流转结束")]
        public bool FlowIsOver { get; set; }

        [DisplayName("创建时间")]
        public DateTime Instime { get; set; }

        [DisplayName("创建者")]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        [DisplayName("部门编码")]
        [StringLength(50)]
        public string UnitCode { get; set; }

    }
}
